#ifndef _MEM_H_
#define _MEM_H_

#ifndef NULL
#define NULL 0
#endif //NULL

#define SAFE_DEL(x) {if (x) delete x; x = NULL;}
#define SAFE_DEL_ARRAY(x) {if (x) delete[] x; x = NULL;}

#endif //_MEM_H_
